import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/fs/directory',
    method: 'get',
    params
  })
}

export function remove(data) {
  return request({
    url: '/fs/remove',
    method: 'post',
    data
  })
}

export function download(data) {
  return request({
    url: '/fs/download',
    method: 'get',
    data
  })
}


export function createDirectory(data) {
  return request({
    url: '/fs/createDirectory',
    method: 'post',
    data
  })
}

export function rename(data) {
  return request({
    url: '/fs/rename',
    method: 'post',
    data
  })
}

export function lock(data) {
  return request({
    url: '/fs/lock',
    method: 'post',
    data
  })
}

export function unlock(data) {
  return request({
    url: '/fs/unlock',
    method: 'post',
    data
  })
}

export function folder(params) {
  return request({
    url: 'fs/folder',
    method: 'get',
    params
  })
}

export function move(data) {
  return request({
    url: 'fs/move',
    method: 'post',
    data
  })
}

export function copy(data) {
  return request({
    url: 'fs/copy',
    method: 'post',
    data
  })
}